package com.stylefeng.guns.modular.netcar.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.modular.netcar.model.VehicleInf;

import java.util.List;

/**
 * 
 * 车辆信息 Mapper 接口 
 * @author sasazaixian
 * @Date 2018-10-23 11:06
 */
public interface VehicleInfMapper extends BaseMapper<VehicleInf> {
    /**
     * 删除车辆信息
     * @param  vehicleInf
     * @return    
     */
    int deleteVehicleInf(VehicleInf vehicleInf)throws Exception;
    /**
     * 批量车辆信息
     * @param ids 主键id数组
     * @return     
     */
    int deleteBatchVehicleInf(String[] ids)throws Exception;
    /**
     * 查询车辆信息列表
     * @param vehicleInf 车辆信息对象
     * @return      
     */
    List<VehicleInf> selectListVehicleInf(VehicleInf vehicleInf)throws Exception;
    /**
     * 分页查询车辆信息列表
     * @param page  分页对象
     * @param vehicleInf 系统操作对象
     * @return
     * @Date 2018-10-02
     */
    List<VehicleInf> selectListVehicleInf(Page page, VehicleInf vehicleInf)throws Exception;


    /**
     * 同一个事务 互斥锁查询
     * @param vehicleInf 系统操作对象
     * @return     
     */
    List<VehicleInf> selectListVehicleInfForUpdate(VehicleInf vehicleInf)throws Exception;
    /**
     * 通过主键ID查询车辆信息对象
     * @param id 主键id
     * @return    
     */
    VehicleInf findVehicleInfById(String id)throws Exception;

    /**
     * 插入车辆信息
     * @param vehicleInf
     * @return   
     */
    int insertVehicleInf(VehicleInf vehicleInf) throws Exception ;
    /**
     * 更新车辆信息
     * @param vehicleInf
     * @return     
     */
    int updateVehicleInf(VehicleInf vehicleInf) throws Exception ;


}
